<?php

namespace MLM\Model\Member\Type;


class Storage extends \MLM\Model\Generic\Db\Storage {
    
    public function save(Type $type){
        $insert = $this->_sql->insert()
                ->into('member_type')
                ->values($type->pull());
        
    }
    
    public function load($id){
        $select = $this->_sql->select()
                ->from('member_type')
                ->where(array('member_type_id_id' => $id));
        
        return $this->fetchRow($select);
    }
}
